From: Jonas Dreßler Date: Fri, 7 Feb 2020 09:23:20 +0000 (+0100) Subject: blur-effect: Only apply paint opacity once when blurring actor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~94 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b75e61d5c8475ce41b8d5f8df405e6d30745d6c1;p=gnome-shell.git blur-effect: Only apply paint opacity once when blurring actor We don't want to apply the opacity multiple times, because this would also multiply the opacity we're applying. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/991 --- diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c index f7b391dad..dc77714f9 100644 --- a/src/shell-blur-effect.c +++ b/src/shell-blur-effect.c @@ -588,12 +588,6 @@ apply_blur (ShellBlurEffect *self, hblur = &self->blur[HORIZONTAL]; /* Copy the actor contents into the vblur framebuffer */ - cogl_pipeline_set_color4ub (from->pipeline, - paint_opacity, - paint_opacity, - paint_opacity, - paint_opacity); - clear_framebuffer (vblur->data.framebuffer); cogl_framebuffer_draw_rectangle (vblur->data.framebuffer, from->pipeline, @@ -609,11 +603,6 @@ apply_blur (ShellBlurEffect *self, * blurred image. */ update_blur_uniforms (self, vblur); - cogl_pipeline_set_color4ub (vblur->data.pipeline, - paint_opacity, - paint_opacity, - paint_opacity, - paint_opacity); clear_framebuffer (hblur->data.framebuffer); cogl_framebuffer_draw_rectangle (hblur->data.framebuffer,